#pragma once

#define D3D_SAFE(fun)								                                                \
{													                                                \
HRESULT hr=fun;										                                                \
if(FAILED(hr))										                                                \
{													                                                \
	LOG(LL_WARN) << "D3D: " << DXGetErrorStringA(hr) <<" "<<DXGetErrorDescriptionA(hr)<<std::endl;  \
}													                                                \
}													